package com.ruoyi.app.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 好友业务对象 app_im_friend
 *
 * @author ruoyi
 * @date 2025-11-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AppImFriendBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 好友用户ID
     */
    @NotNull(message = "好友用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long friendUserId;

    /**
     * 好友来源，例如：扫码添加、手机号、系统推荐等
     */
    @NotBlank(message = "好友来源，例如：扫码添加、手机号、系统推荐等不能为空", groups = { AddGroup.class, EditGroup.class })
    private String friendSource;

    /**
     * 好友标签，例如：同事、同学、家人等
     */
    @NotBlank(message = "好友标签，例如：同事、同学、家人等不能为空", groups = { AddGroup.class, EditGroup.class })
    private String friendTag;

    /**
     * 备注信息
     */
    @NotBlank(message = "备注信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
